package cn.iocoder.yudao.framework.region.vo;

import cn.iocoder.yudao.framework.region.vo.setter.CountyAutoSetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  使用 Lombok 时需注意标记上 {@code @Accessors(chain = false)}
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2024/05/26
 */
@Data
public class CountyVO extends CityVO implements CountyAutoSetter {

    @Schema(description = "区县编码", example = "520100")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String countyCode;

    @Schema(description = "区县名称", example = "南明区")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String countyName;

    @Override
    public void setCountyCode(String countyCode) {
        this.countyCode = countyCode;
    }

    @Override
    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

}
